package com.zhongke.common.widget;

import android.content.Context;
import android.util.AttributeSet;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatTextView;

/**
 * Author: wpt
 * Time: 2021/11/2
 * @Desc：字体为Medium(中黑体，介于常规体与粗体之间)的TextView
 */
public class ZKFakeBoldTextView extends AppCompatTextView {
    public ZKFakeBoldTextView(@NonNull Context context) {
        this(context, null,0);
    }

    public ZKFakeBoldTextView(@NonNull Context context, @Nullable AttributeSet attrs) {
        this(context, attrs,0);
    }

    public ZKFakeBoldTextView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
    }

    private void init(){
        this.getPaint().setFakeBoldText(true);
    }
}
